﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WaterCloud.Domain.Entity.STZBManage
{
    /// <summary>
    /// 用户表实体类
    /// </summary>
    [SugarTable(TableDescription = "用户表", TableName = "stzb_user")]
    public class User
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")]
        public string Id { get; set; }

        /// <summary>
        /// 头像路径
        /// </summary>
        [SugarColumn(ColumnDescription = "头像路径", Length = 500, IsNullable = true)]
        public string HeadImg { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDescription = "账号", Length = 50)]
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码", Length = 50)]
        public string Pwd { get; set; }

        /// <summary>
        /// 审核状态 0:待审核、1:通过、2:拒绝
        /// </summary>
        [SugarColumn(ColumnDescription = "审核状态 0:待审核、1:通过、2:拒绝")]
        public int State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
        public DateTime CreateTime { get; set; }
    }
}
